package com.cne.gmail.Gmail.dao;

import com.cne.gmail.Gmail.model.AddressList;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface AddressListRepository extends MongoRepository<AddressList ,String> {
    Page<AddressList> findByMe(String me,Pageable page);
    AddressList findByMeAndAddressAndGroup(String me,String emailAddress,String group);
    List<AddressList> findByMeAndGroup(String me,String group);
    AddressList findByMeAndAddress(String me,String emailAddress);
}
